# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=relay-scanner
pkgver=1.7
pkgrel=9
pkgdesc='An SMTP relay scanner.'
url='http://www.cirt.dk'
groups=('blackarch' 'blackarch-scanner')
makedepends=('unzip')
license=('custom:unkown')
depends=('perl')
arch=('any')
source=('https://dl.packetstormsecurity.net/UNIX/mail/relayscanner.zip')
sha512sums=('7f7f88c231cd727f8cc400c5bc08959a34d30541490d1a7cb1a7c02df54a1f42e7422371e84dfe60789a390cd7f55af798aa0f0af0b1bb9d0746100f24f2a12e')

package() {
  install -Dm 755 RelayScanner.txt "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 host_info.txt "$pkgdir/usr/share/$pkgname/host_info.txt"

  cd "$pkgdir/usr/share/$pkgname"

  unzip "$srcdir/plugins.zip"
}

